// 创建企业相关小仓库
import { defineStore } from "pinia"
import { reqGetCompanyList } from '@/api/company'

let useCompanyStore = defineStore('Company', {
    state: () => {
        return {
            companyList: null, // 企业列表
        }
    },
    actions: {
        // 获取企业列表
        async getCompanyList(){
            let res = await reqGetCompanyList()
            console.log('企业列表', res)
        }
    },
    getters: {}
})
export default useCompanyStore